// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** test5 GET /api/test/check */
export async function test5UsingGet(options?: { [key: string]: any }) {
  return request<API.ResultString_>('/api/test/check', {
    method: 'GET',
    ...(options || {}),
  });
}

/** test8 GET /api/test/error */
export async function test8UsingGet(options?: { [key: string]: any }) {
  return request<API.ResultString_>('/api/test/error', {
    method: 'GET',
    ...(options || {}),
  });
}

/** test7 GET /api/test/exception */
export async function test7UsingGet(options?: { [key: string]: any }) {
  return request<API.ResultString_>('/api/test/exception', {
    method: 'GET',
    ...(options || {}),
  });
}

/** test4 GET /api/test/hasPermission */
export async function test4UsingGet(options?: { [key: string]: any }) {
  return request<API.ResultString_>('/api/test/hasPermission', {
    method: 'GET',
    ...(options || {}),
  });
}

/** test3 GET /api/test/isLogin */
export async function test3UsingGet(options?: { [key: string]: any }) {
  return request<API.ResultString_>('/api/test/isLogin', {
    method: 'GET',
    ...(options || {}),
  });
}

/** test2 GET /api/test/kickout */
export async function test2UsingGet(options?: { [key: string]: any }) {
  return request<API.ResultString_>('/api/test/kickout', {
    method: 'GET',
    ...(options || {}),
  });
}

/** test GET /api/test/login */
export async function testUsingGet(options?: { [key: string]: any }) {
  return request<API.ResultString_>('/api/test/login', {
    method: 'GET',
    ...(options || {}),
  });
}

/** test1 GET /api/test/logout */
export async function test1UsingGet(options?: { [key: string]: any }) {
  return request<API.ResultString_>('/api/test/logout', {
    method: 'GET',
    ...(options || {}),
  });
}

/** test9 GET /api/test/mustLogin */
export async function test9UsingGet(options?: { [key: string]: any }) {
  return request<API.ResultString_>('/api/test/mustLogin', {
    method: 'GET',
    ...(options || {}),
  });
}

/** listAccount POST /api/test/page */
export async function listAccountUsingPost(
  body: API.SimpleRequestBody,
  options?: { [key: string]: any }
) {
  return request<API.ResultPageAccount_>('/api/test/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** test6 GET /api/test/success */
export async function test6UsingGet(options?: { [key: string]: any }) {
  return request<API.ResultString_>('/api/test/success', {
    method: 'GET',
    ...(options || {}),
  });
}
